#include "Road.h"

namespace OpenDrive {
	Road::Road(std::string name, float length, std::string id, std::string junction) :name(name), length(length), id(id), junctionId(junctionId){}

	Road::~Road(){}

	void Road::setLanes(const Lanes &l)	{
		lanes = l;
	}
	void Road::setPlaneView(const PlanView &p){
		planview = p;
	}

	void Road::setRoadLink(const Link &rl)	{
		roadLink = rl;
	}
	bool Road::laneExist(int laneSectionId, int laneId) const
	{
		return lanes.laneExist(laneSectionId, laneId);
	}
	Lane & Road::getLane(int laneSectionId, int laneId)
	{
		return lanes.getLane(laneSectionId, laneId);
	}
}